-- GENERATED SPELL FOR [Exarch Orelis] --


function spell0_19466(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_19466', 30268, 1)
end

function spell1_19466(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(29426,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19466', 657, 1)
end

function spell2_19466(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(16509,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19466', 15000, 1)
end

function Sorts_19466(pUnit, Event)
local choix_sorts_19466 = math.random(0, 2)
if choix_sorts_19466 == 0 then
pUnit:RegisterEvent('spell0_19466', 1, 1)
end
if choix_sorts_19466 == 1 then
pUnit:RegisterEvent('spell1_19466', 1, 1)
end
if choix_sorts_19466 == 2 then
pUnit:RegisterEvent('spell2_19466', 1, 1)
end
end

function mob19466_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19466', math.random(1500, 3000), 1)
end

function mob19466_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19466_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19466_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19466, 1, 'mob19466_Action')
RegisterUnitEvent(19466, 2, 'mob19466_Leave')
RegisterUnitEvent(19466, 3, 'mob19466_Kill')
RegisterUnitEvent(19466, 4, 'mob19466_Die')
